import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

export default new Router({
  /*  mode: 'history',*/
  routes: [
    {
      path: '/',
      redirect: '/homePage'
    },
    {
      path: '/',
      component: resolve => require(['../components/common/Home.vue'], resolve),
      meta: {title: '主体'},
      children: [
        {
          path: '/homePage',
          component: resolve => require(['../components/page/homePage.vue'], resolve),
          meta: {title: '首页'}
        },
        {
          path: '/login',
          component: resolve => require(['../components/page/login.vue'], resolve),
          meta: {title: '登录'}
        },
        {
          path: '/signin',
          component: resolve => require(['../components/page/signin.vue'], resolve),
          meta: {title: '注册'}
        },
        {
          path: '/organizationIntroduce',
          component: resolve => require(['../components/page/organizationIntroduce.vue'], resolve),
          meta: {title: '机构介绍'}
        },
        {
          path: '/consultants',
          component: resolve => require(['../components/page/consultants.vue'], resolve),
          meta: {title: '顾问介绍'}
        },
        {
          path: '/organizationStructure',
          component: resolve => require(['../components/page/organizationStructure.vue'], resolve),
          meta: {title: '组织结构'}
        },
        {
          path: '/contactWay',
          component: resolve => require(['../components/page/contactWay.vue'], resolve),
          meta: {title: '联系方式'}
        },
        {
          path: '/journalsJoin',
          component: resolve => require(['../components/page/journalsJoin.vue'], resolve),
          meta: {title: '期刊加盟'}
        },
        {
          path: '/journalHygiene',
          component: resolve => require(['../components/page/journalHygiene.vue'], resolve),
          meta: {title: '卫生期刊'}
        },

        {
          path: '/journalDetails',
          component: resolve => require(['../components/page/journalDetails.vue'], resolve),
          meta: {title: '期刊详情'}
        },

        {
          path: '/contributeProcess',
          component: resolve => require(['../components/page/contributeProcess.vue'], resolve),
          meta: {title: '投稿流程'}
        },
        {
          path: '/contributeGuide',
          component: resolve => require(['../components/page/contributeGuide.vue'], resolve),
          meta: {title: '投稿指南'}
        },
        {
          path: '/manuscriptEvaluation',
          component: resolve => require(['../components/page/manuscriptEvaluation.vue'], resolve),
          meta: {title: '稿件评估'}
        },
        {
          path: '/assess',
          component: resolve => require(['../components/page/assess.vue'], resolve),
          meta: {title: '稿件评估详情'}
        },
        {
          path: '/onlineCourses',
          component: resolve => require(['../components/page/onlineCourses.vue'], resolve),
          meta: {title: '线上课程'}
        },

        {
          path: '/DocumentFormatCheck',
          component: resolve => require(['../components/page/DocumentFormatCheck.vue'], resolve),
          meta: {title: '文献格式检验'}
        },
        {
          path: '/ProofreadForTypos',
          component: resolve => require(['../components/page/ProofreadForTypos.vue'], resolve),
          meta: {title: '错别字校对'}
        },
        {
          path: '/ManuscriptInnovationIndex',
          component: resolve => require(['../components/page/ManuscriptInnovationIndex.vue'], resolve),
          meta: {title: '稿件创新指数'}
        },

        {
          path: '/workTrend',
          component: resolve => require(['../components/page/workTrend.vue'], resolve),
          meta: {title: '工作动态'}
        },
        {
          path: '/detail',
          component: resolve => require(['../components/page/detail.vue'], resolve),
          meta: {title: '工作动态文本'}
        },
        {
          path: '/industryDynamic',
          component: resolve => require(['../components/page/industryDynamic.vue'], resolve),
          meta: {title: '行业动态'}
        },
        {
          path: '/text02',
          component: resolve => require(['../components/page/text02.vue'], resolve),
          meta: {title: '行业动态文本'}
        },
        {
          path: '/announcementNotice',
          component: resolve => require(['../components/page/announcementNotice.vue'], resolve),
          meta: {title: '公告通知'}
        },
        {
          path: '/text03',
          component: resolve => require(['../components/page/text03.vue'], resolve),
          meta: {title: '公告通知文本'}
        },
        {
          path: '/editingActivity',
          component: resolve => require(['../components/page/editingActivity.vue'], resolve),
          meta: {title: '编辑活动'}
        },
        {
          path: '/actciles',
          component: resolve => require(['../components/page/actciles.vue'], resolve),
          meta: {title: '文章资讯'}
        },
        {
          path: '/onlineCourses2',
          component: resolve => require(['../components/page/onlineCourses2.vue'], resolve),
          meta: {title: '线上课程'}
        },

        {
          path: '/mediaStyle',
          component: resolve => require(['../components/page/mediaStyle.vue'], resolve),
          meta: {title: '媒体采风'}
        },

        {
          path: '/goodJournals',
          component: resolve => require(['../components/page/goodJournals.vue'], resolve),
          meta: {title: '优秀期刊'}
        },
        {
          path: '/Mail_buy',
          component: resolve => require(['../components/page/Mail_buy.vue'], resolve),
          meta: {title: '直投'}
        },
        {
          path: '/personalInformation',
          component: resolve => require(['../components/page/personalInformation.vue'], resolve),
          meta: {title: '个人信息'}
        },
        {
          path: '/ManuscriptDirectInvestment',
          component: resolve => require(['../components/page/ManuscriptDirectInvestment.vue'], resolve),
          meta: {title: '稿件直投'}
        },
        {
          path: '/TheManuscriptEvaluation',
          component: resolve => require(['../components/page/TheManuscriptEvaluation.vue'], resolve),
          meta: {title: '稿件评估'}
        },
        {
          path: '/accountSecurity',
          component: resolve => require(['../components/page/accountSecurity.vue'], resolve),
          meta: {title: '账号安全'}
        },
        {
          path: '/complaintAndAdvice',
          component: resolve => require(['../components/page/complaintAndAdvice.vue'], resolve),
          meta: {title: '投诉建议'}
        },
        /*编辑之家详情*/
        {
          path: '/textCompile',
          component: resolve => require(['../components/page/textCompile.vue'], resolve),
        },
        /*视频课程*/
        {
          path: '/videoCourse',
          component: resolve => require(['../components/page/videoCourse.vue'], resolve),
        },
        /*搜索*/
        {
          path: '/search',
          component: resolve => require(['../components/page/search.vue'], resolve),
        },
        /*关于平台*/
        {
          path: '/terrace',
          component: resolve => require(['../components/page/terrace.vue'], resolve),
        },
        /*政策法规*/
        {
          path: '/PoliciesRegulations',
          component: resolve => require(['../components/page/PoliciesRegulations.vue'], resolve),
        },
        /*特别策划*/
        {
          path: '/SpecialPlanning',
          component: resolve => require(['../components/page/SpecialPlanning.vue'], resolve),
        },
        /*论文投稿*/
        {
          path: '/paperSubmission',
          component: resolve => require(['../components/page/paperSubmission.vue'], resolve),
        },
        /*关于机构详情*/
        {
          path: '/textLeague',
          component: resolve => require(['../components/page/textLeague.vue'], resolve),
        },
        /*期刊资讯*/
        {
          path: '/JournalofInformation',
          component: resolve => require(['../components/page/JournalofInformation.vue'], resolve),
        },
        /*投稿攻略*/
        {
          path: '/SubmissionStrategy',
          component: resolve => require(['../components/page/SubmissionStrategy.vue'], resolve),
        },
        /*顾问详情*/
        {
          path: '/advisoryDetails',
          component: resolve => require(['../components/page/advisoryDetails.vue'], resolve),
        },
        /*网站地图*/
        {
          path: '/websiteMap',
          component: resolve => require(['../components/page/websiteMap.vue'], resolve),
        },
        {
          path: '/law',
          component: resolve => require(['../components/page/law.vue'], resolve),
        },
      ]
    }
  ]
})
